#ifndef CUSTOMLINEEDIT_H
#define CUSTOMLINEEDIT_H

#include <QtGui>

class CustomLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    CustomLineEdit(QWidget *parent = 0);
    virtual ~CustomLineEdit();

public:
    void setEmptyMessage( const QString &msg );

protected:
    void paintEvent( QPaintEvent *ev );
    void focusInEvent( QFocusEvent *ev );
    void focusOutEvent( QFocusEvent *ev );

private:
    QString emptyMessage;
    bool drawEmptyMsg;
};

#endif // CUSTOMLINEEDIT_H
